/*    */ package openmyexplorer.preferences;
import openmyexplorer.Activator;
import openmyexplorer.util.Messages;

/*    */ import org.eclipse.jface.preference.IPreferenceStore;
/*    */ import org.eclipse.jface.preference.PreferencePage;
/*    */ import org.eclipse.swt.layout.GridData;
/*    */ import org.eclipse.swt.layout.GridLayout;
/*    */ import org.eclipse.swt.widgets.Composite;
/*    */ import org.eclipse.swt.widgets.Control;
/*    */ import org.eclipse.swt.widgets.Label;
/*    */ import org.eclipse.ui.IWorkbench;
/*    */ import org.eclipse.ui.IWorkbenchPreferencePage;
/*    */ 
/*    */ public class HomePreferencePage extends PreferencePage
/*    */   implements IWorkbenchPreferencePage
/*    */ {
/*    */   public void init(IWorkbench workbench)
/*    */   {
/* 54 */     setDescription(Messages.Open_Explorer_Version + "1.5.0");
/*    */   }
/*    */ 
/*    */   protected IPreferenceStore doGetPreferenceStore()
/*    */   {
/* 64 */     return Activator.getDefault().getPreferenceStore();
/*    */   }
/*    */ 
/*    */   protected Control createContents(Composite parent)
/*    */   {
/* 69 */     Composite composite = createComposite(parent);
/* 70 */     createLabel(composite, Messages.Expand_Instruction);
/* 71 */     return composite;
/*    */   }
/*    */ 
/*    */   private Composite createComposite(Composite parent) {
/* 75 */     Composite composite = new Composite(parent, 0);
/* 76 */     GridLayout layout = new GridLayout();
/* 77 */     layout.marginWidth = 0;
/* 78 */     layout.marginHeight = 5;
/* 79 */     composite.setLayout(layout);
/* 80 */     composite.setLayoutData(new GridData(768));
/* 81 */     return composite;
/*    */   }
/*    */ 
/*    */   protected Label createLabel(Composite parent, String text) {
/* 85 */     Label label = new Label(parent, 16384);
/* 86 */     label.setText(text);
/* 87 */     GridData data = new GridData();
/* 88 */     data.horizontalSpan = 1;
/* 89 */     data.horizontalAlignment = 4;
/* 90 */     label.setLayoutData(data);
/* 91 */     return label;
/*    */   }
/*    */ }

/* Location:           F:\Eclipse2020\eclipse\dropins\OpenExplorer_1.5.0.v201108051513.jar
 * Qualified Name:     openexplorer.preferences.HomePreferencePage
 * JD-Core Version:    0.6.2
 */